package com.youths.dao;

import com.youths.domain.Recognization;
import com.youths.domain.Slice;
import com.youths.domain.YouthInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/6/28
 */
public interface RecognizationMapper {
    //add
//    int add(@Param("slicingId") Integer slicingID,
//            @Param("raoScore") Integer raoScore,
//            @Param("chiScore") Integer chiScore,
//            @Param("touScore") Integer touScore,
//            @Param("gouScore") Integer gouScore,
//            @Param("zhang1Score") Integer zhang1Score,
//            @Param("zhang3Score") Integer zhang3Score,
//            @Param("zhang5Score") Integer zhang5Score,
//            @Param("jin1Score") Integer jin1Score,
//            @Param("jin3Score") Integer jin3Score,
//            @Param("jin5Score") Integer jin5Score,
//            @Param("zhong3Score") Integer zhong3Score,
//            @Param("zhong5Score") Integer zhong5Score,
//            @Param("yuan1Score") Integer yuan1Score,
//            @Param("yuan3Score") Integer yuan3Score,
//            @Param("yuan5Score") Integer yuan5Score,
//            @Param("kind") Integer kind,
//            @Param("state") Integer state);

    int updateRank(Recognization recognization);

    int add(Recognization recognization);

    int addChn(Recognization recognization);


    //query
    Recognization query(@Param("recoId") Integer recoId);

    List<Recognization> list(@Param("slicingId") Integer slicingId);

    List<Recognization> getList(@Param("type") Integer type,
                                @Param("date1") String date1,
                                @Param("date2") String date2,
                                @Param("recoId") Integer recoId,
                                @Param("slicingId") Integer slicingId,
                                @Param("slices") List<Slice> slices);
}
